Integrand size = 17, antiderivative size = 37 \[ \int \sin ^3(a+b x) \tan ^2(a+b x) \, dx=\frac {2 \cos (a+b x)}{b}-\frac {\cos ^3(a+b x)}{3 b}+\frac {\sec (a+b x)}{b} \]
[Out]
Time = 0.03 (sec) , antiderivative size = 37, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 2, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.118, Rules used = {2670, 276} \[ \int \sin ^3(a+b x) \tan ^2(a+b x) \, dx=-\frac {\cos ^3(a+b x)}{3 b}+\frac {2 \cos (a+b x)}{b}+\frac {\sec (a+b x)}{b} \]
[In]
[Out]
Rule 276
Rule 2670
Rubi steps \begin{align*} \text {integral}& = -\frac {\text {Subst}\left (\int \frac {\left (1-x^2\right )^2}{x^2} \, dx,x,\cos (a+b x)\right )}{b} \\ & = -\frac {\text {Subst}\left (\int \left (-2+\frac {1}{x^2}+x^2\right ) \, dx,x,\cos (a+b x)\right )}{b} \\ & = \frac {2 \cos (a+b x)}{b}-\frac {\cos ^3(a+b x)}{3 b}+\frac {\sec (a+b x)}{b} \\ \end{align*}
Time = 0.09 (sec) , antiderivative size = 39, normalized size of antiderivative = 1.05 \[ \int \sin ^3(a+b x) \tan ^2(a+b x) \, dx=\frac {7 \cos (a+b x)}{4 b}-\frac {\cos (3 (a+b x))}{12 b}+\frac {\sec (a+b x)}{b} \]
[In]
[Out]
Time = 0.12 (sec) , antiderivative size = 46, normalized size of antiderivative = 1.24
method | result | size |
parallelrisch | \(\frac {20 \cos \left (2 b x +2 a \right )+45-\cos \left (4 b x +4 a \right )+64 \cos \left (b x +a \right )}{24 b \cos \left (b x +a \right )}\) | \(46\) |
derivativedivides | \(\frac {\frac {\sin ^{6}\left (b x +a \right )}{\cos \left (b x +a \right )}+\left (\frac {8}{3}+\sin ^{4}\left (b x +a \right )+\frac {4 \left (\sin ^{2}\left (b x +a \right )\right )}{3}\right ) \cos \left (b x +a \right )}{b}\) | \(50\) |
default | \(\frac {\frac {\sin ^{6}\left (b x +a \right )}{\cos \left (b x +a \right )}+\left (\frac {8}{3}+\sin ^{4}\left (b x +a \right )+\frac {4 \left (\sin ^{2}\left (b x +a \right )\right )}{3}\right ) \cos \left (b x +a \right )}{b}\) | \(50\) |
norman | \(\frac {-\frac {16}{3 b}-\frac {32 \left (\tan ^{2}\left (\frac {b x}{2}+\frac {a}{2}\right )\right )}{3 b}}{\left (1+\tan ^{2}\left (\frac {b x}{2}+\frac {a}{2}\right )\right )^{3} \left (\tan ^{2}\left (\frac {b x}{2}+\frac {a}{2}\right )-1\right )}\) | \(54\) |
risch | \(\frac {7 \,{\mathrm e}^{i \left (b x +a \right )}}{8 b}+\frac {7 \,{\mathrm e}^{-i \left (b x +a \right )}}{8 b}+\frac {2 \,{\mathrm e}^{i \left (b x +a \right )}}{b \left ({\mathrm e}^{2 i \left (b x +a \right )}+1\right )}-\frac {\cos \left (3 b x +3 a \right )}{12 b}\) | \(71\) |
[In]
[Out]
none
Time = 0.30 (sec) , antiderivative size = 33, normalized size of antiderivative = 0.89 \[ \int \sin ^3(a+b x) \tan ^2(a+b x) \, dx=-\frac {\cos \left (b x + a\right )^{4} - 6 \, \cos \left (b x + a\right )^{2} - 3}{3 \, b \cos \left (b x + a\right )} \]
[In]
[Out]
Exception generated. \[ \int \sin ^3(a+b x) \tan ^2(a+b x) \, dx=\text {Exception raised: HeuristicGCDFailed} \]
[In]
[Out]
none
Time = 0.20 (sec) , antiderivative size = 32, normalized size of antiderivative = 0.86 \[ \int \sin ^3(a+b x) \tan ^2(a+b x) \, dx=-\frac {\cos \left (b x + a\right )^{3} - \frac {3}{\cos \left (b x + a\right )} - 6 \, \cos \left (b x + a\right )}{3 \, b} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 99 vs. \(2 (35) = 70\).
Time = 0.32 (sec) , antiderivative size = 99, normalized size of antiderivative = 2.68 \[ \int \sin ^3(a+b x) \tan ^2(a+b x) \, dx=\frac {2 \, {\left (\frac {3}{\frac {\cos \left (b x + a\right ) - 1}{\cos \left (b x + a\right ) + 1} + 1} + \frac {\frac {12 \, {\left (\cos \left (b x + a\right ) - 1\right )}}{\cos \left (b x + a\right ) + 1} - \frac {3 \, {\left (\cos \left (b x + a\right ) - 1\right )}^{2}}{{\left (\cos \left (b x + a\right ) + 1\right )}^{2}} - 5}{{\left (\frac {\cos \left (b x + a\right ) - 1}{\cos \left (b x + a\right ) + 1} - 1\right )}^{3}}\right )}}{3 \, b} \]
[In]
[Out]
Time = 0.24 (sec) , antiderivative size = 31, normalized size of antiderivative = 0.84 \[ \int \sin ^3(a+b x) \tan ^2(a+b x) \, dx=-\frac {{\left (\cos \left (a+b\,x\right )+1\right )}^3\,\left (\cos \left (a+b\,x\right )-3\right )}{3\,b\,\cos \left (a+b\,x\right )} \]
[In]
[Out]